import http from '@/utils/http.js'
// 获取课程包中专业数据
export function getPackCourses(params) {
  return http.get('/wxpub/course/course_package', params)
}
// 获取看课页面课程基础数据信息
export function getOneCourse(params) {
  return http.get('/wxpub/api/course_detail', params)
}
// 获取目录列表
/**
 * 
 * @param {
 * course_id	69	是	string	当前课程记录id
  teacher_id	1	是	string	当前选择老师id
  year} params 
 */
export function getCourseMkInfo(params) {
  return http.get('/wxpub/api/course_video_switchv2', params)
}

// 获取课节课程信息
/**
 * 
 * @param {
 * course_id	69	是	string	当前课程记录id
  teacher_id	1	是	string	当前选择老师id
  year} params 
 */
export function getVideoInfo(params) {
  return http.get('/wxpub/api/video_play_detail', params)
}
/**
 * 获取收藏
 * @param {
 * } params
 */
export function getCollectSection(params) {
  return http.get('/storage/section/section_collect', params)
}

// 收藏
/**
 * @param {
 * course_id
   course_section_id
 * } params 
 */
export function collectSection(params) {
  return http.post('/storage/section/section_collect', params)
}
// 评分
/**
 * @param {
  * course_id
  course_section_id
  comment_star
  comment_content
  video_id
  teacher_id
* } params 
*/
export function videoComment(params) {
  return http.post('/storage/video/video_comment', params)
}

// 请求笔记列表
export function getNoteList(params) {
  return http.get('/wxpub/api_base/note_course_list', params)
}

// 新增一条笔记
export function insertNote(params) {
  return http.post('/wxpub/api_base/user_note_course', params)
}

// 删除笔记
export function removeNote(params) {
  return http.post('/wxpub/api_base/delete_note_course', params)
}
// 获取看课进度
export function getVideoProgress(params) {
  return http.get('/storage/video/pull_progressV2', params)
}
// 进度上报
export function postVideoProgress(params) {
  return http.post('/storage/video/push_progressV2', params)
}
// 收藏|取消 课节
export function postCollectSection(params) {
  return http.post('/storage/section/section_collect', params)
}
// 线路切换 获取腾讯视频资源
export function getTcVideo(params, option) {
  return http.post('/wxpub/api/video', params, option)
}
// 线路切换 获取加密视频资源
export function getAwsVideo(params, option) {
  return http.post('/wxpub/api/videoV2', params, option)
}

// 免费看课相关接口
// 课程包
export function getFreePackCourses(params) {
  return http.get('/wxpub/free_api/course_muster_map_v2', params)
}
// 单课程
export function getFreeOneCourse(params) {
  return http.get('/wxpub/free_api/video_show_v2', params)
}
// 获取课节信息
export function getFreeVideoInfo(params) {
  return http.get('/wxpub/free_api/video_detail_v2', params)
}
// 获取免费看课页面目录列表
export function getFreeCourseMkInfo(params) {
  return http.get('/wxpub/free_api/course_video_switch_v2', params)
}

// 获取第三方实操软件
export function getSoft(params) {
  return http.get('/app/third_soft/hkj_url', params)
}
//获取网中网的登录后跳转
export function getWzwCourse(params) {
  return http.get('/app/wzw/student_login', params)
}
//获取考点的全部老师
export function getSiteTeacher(params) {
  return http.get('/ban/study_center/course/section_same_exam_site', params)
}
